package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.dto.DishDto;

public interface IDishService extends IService<Dish> {

    //新增菜品,需要同时操作两张表的数据Dish和DishFlavor
    public void saveWithFlavor(DishDto dishDto);


    //修改菜品,定义一个方法来回显Dish和DishFlavor两张表的数据
    public DishDto getByIdWithFlavor(Long id);

    /*//修改菜品,定义一个方法来回显Dish和DishFlavor两张表的数据
    public DishDto getByIdWithFlavor(DishDto dishDto);*/
}
